/*    */ package com.zimbra.cs.octosync;
/*    */ 
/*    */ import java.io.Closeable;
/*    */ import java.io.IOException;
/*    */ import java.io.InputStream;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public abstract interface PatchReader
/*    */   extends Closeable
/*    */ {
/*    */   public abstract long getFileSize();
/*    */   
/*    */   public abstract boolean hasMoreRecordInfos()
/*    */     throws IOException, BadPatchFormatException;
/*    */   
/*    */   public abstract RecordInfo getNextRecordInfo()
/*    */     throws IOException, BadPatchFormatException;
/*    */   
/*    */   public abstract InputStream popData()
/*    */     throws IOException, BadPatchFormatException;
/*    */   
/*    */   public abstract PatchRef popRef()
/*    */     throws IOException, BadPatchFormatException, InvalidPatchReferenceException;
/*    */   
/*    */   public abstract void close()
/*    */     throws IOException;
/*    */   
/*    */   public static class RecordInfo
/*    */   {
/*    */     public PatchReader.RecordType type;
/*    */     public long length;
/*    */   }
/*    */   
/*    */   public static enum RecordType
/*    */   {
/* 39 */     DATA, 
/*    */     
/* 41 */     REF;
/*    */     
/*    */     private RecordType() {}
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/octosync/PatchReader.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */